package com.n9.qq.android.RegisterProxySvcPack;

import java.io.Serializable;

/**
 * @author ice
 * @since 2019/3/1 14:12
 */
public final class MqqSysType implements Serializable {
    public static final MqqSysType MqqSysType_Android;
    public static final MqqSysType MqqSysType_Iphone;
    public static final MqqSysType MqqSysType_Symbian_V5;
    public static final MqqSysType MqqSysType_default;
    public static final int _MqqSysType_Android = 2;
    public static final int _MqqSysType_Iphone = 1;
    public static final int _MqqSysType_Symbian_V5 = 3;
    public static final int _MqqSysType_default = 0;
    private static MqqSysType[] a;
    private String __T = new String();
    private int __value;

    static {
        boolean var0;
        if (!MqqSysType.class.desiredAssertionStatus()) {
            var0 = true;
        } else {
            var0 = false;
        }

        a = new MqqSysType[4];
        MqqSysType_default = new MqqSysType(0, 0, "MqqSysType_default");
        MqqSysType_Iphone = new MqqSysType(1, 1, "MqqSysType_Iphone");
        MqqSysType_Android = new MqqSysType(2, 2, "MqqSysType_Android");
        MqqSysType_Symbian_V5 = new MqqSysType(3, 3, "MqqSysType_Symbian_V5");
    }

    private MqqSysType(int var1, int var2, String var3) {
        this.__T = var3;
        this.__value = var2;
        a[var1] = this;
    }

    public static MqqSysType convert(int var0) {
        for (int i = 0; i < a.length; i++) {
            if (a[i].value() == var0) {
                return a[i];
            }
        }
        return null;
    }

    public static MqqSysType convert(String var0) {
        for (int i = 0; i < a.length; i++) {
            if (a[i].toString().equals(var0)) {
                return a[i];
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.__T;
    }

    public int value() {
        return this.__value;
    }
}